/**
 * 消息提示
 */
function toast(msg, isSuccess){
    var color = "#dd0000";
    if(isSuccess){
        color = "#00aa00";
    }
    var toast=$('<div style="position:fixed;left:50%;top:50%;margin-left:40px;padding:4px 20px;font-size:14px;color:#FFF;background:'+color+';border-radius:10px;line-height:22px;z-index:99999;">'+msg+'</div>');
    toast.appendTo($("body",window.top.document));
    var width=toast.width()/2+15;
    var height=toast.height()/2+5;
    //toast.css({'margin-left':'-'+width+'px','margin-top':'-'+height+'px'});
    toast.css({'margin-left':'-'+width+'px','margin-top':'-'+height+'px'});
    setTimeout(function(){
        toast.fadeOut(150,function(){
            $(this).remove();
        });
    }, 1500);
}
